package com.lxw.framework.exception;


import com.lxw.framework.model.response.ResultCode;

/**
 * 异常抛出类
 * 通过静态方法抛出自定义异常
 */

public class ExceptionCast {

    //使用此静态方法抛出自定义异常
    public static void cast(ResultCode resultCode){
        throw new CustomException(resultCode);
    }


}
